<!-- <script lang="ts" setup>
defineProps<{
  bc: string
  url: string
}>()
</script> -->
<template>
  <div v-if="$slots.imgFixed" class="BgVue BgFixed">
    <slot name="imgFixed"></slot>
  </div>
  <div class="BgVue max-window">
    <slot name="img"></slot>
  </div>
  <div class="BgCont max-window"><slot></slot></div>
</template>

<style lang="less" scoped>
.BgVue {
  position: absolute;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
  // background-repeat: no-repeat;
  // background-position: center center;
  // background-size: auto 100%;
  // background-size: 100% auto;
  & > :deep(img) {
    width: 100%;
  }
}
.BgFixed {
  position: fixed;
  & > :deep(img) {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
}
.BgCont {
  position: relative;
  z-index: 1;
}
</style>
